package com.scy.videocomponent.controller;

import com.scy.videocomponent.config.DataConfig;
import com.scy.videocomponent.vo.NodeVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author wuhao
 */
@Controller
public class IndexController {

    @RequestMapping({"/index","/"})
    public String index(){
        return "index";
    }

    @RequestMapping("/getData")
    public @ResponseBody List<NodeVO> get(){
        return DataConfig.list;
    }
}